#ifndef PAGEAUX_H
#define PAGEAUX_H

#include <QWidget>
#include <QLabel>
#include "global_def.h"

namespace Ui {
class PageAux;
}

class PageAux : public QWidget
{
    Q_OBJECT

public:
    explicit PageAux(QWidget *parent = nullptr);
    ~PageAux();
    void setAuxStat(uint8_t item, uint8_t index, uint16_t value);
private:
    Ui::PageAux *ui;
    QList<QList <QLabel *>> m_lAuxStatList;
    QStringList m_lAuxStatNameList;
    QList<uint8_t> m_lAuxStatCntOfOneCar;
private:
    void InitAuxStatLabels();
    void SetPosition(QWidget* w, int car, uint8_t row, uint8_t col, uint8_t total, bool xReverse=false);
    void setDefaultStat();
private:
    uint m_nStatLabelWidth_Car;
    uint m_nStatLabelHeight;
    uint m_nStatLabelStartY;
    uint m_nStatLabelSpaceX;
    uint m_nStatLabelSpaceY;
};

#endif // PAGEAUX_H
